
// 给一个节点（原始或nw节点），即可以自动分析出来 。ys属性 的样式代号。
function NW04_zdy_sj_gt(jd) {
    this.jd = jd;
    this.sj = 0;
    this.sb_ax;//事件。单击事件
    this.sb_sk;//事件。
    this.sb_dj;//事件。
    this.sb_sj;//事件。
    this.sb_yj;//事件。
    this.sb_jr;//事件。
    this.sb_lk;//事件。
    this.jp_ax;
    this.jp_az;
    this.jp_sk;
    this.z_gb;
    this.z_sr;
    this.gdt_gd;

    //鼠标
    this._ngj_zc('onmousedown', NW04_zdy_sj_sb_ax, 'sb_ax')
    this._ngj_zc('onmouseup', NW04_zdy_sj_sb_sk, 'sb_sk')
    this._ngj_zc('onclick', NW04_zdy_sj_sb_dj, 'sb_dj')
    this._ngj_zc('ondblclick', NW04_zdy_sb_sb_sj, 'sb_sj')
    this._ngj_zc('oncontextmenu', NW04_zdy_sj_sb_yj, 'sb_yj')
    this._ngj_zc('onmouseover', NW04_zdy_sj_sb_jr, 'sb_jr')
    this._ngj_zc('onmouseout', NW04_zdy_sj_sb_lk, 'sb_lk')

    //键盘
    this._ngj_zc('onkeydown', NW04_zdy_sj_jp_ax, 'jp_ax')
    this._ngj_zc('onkeypress', NW04_zdy_sj_jp_az, 'jp_az')
    this._ngj_zc('onkeyup', NW04_zdy_sj_jp_sk, 'jp_sk')

    // 值 变动事件
    this._ngj_zc('onchange', NW04_zdy_sj_z_gb, 'z_gb')
    this._ngj_zc('oninput', NW04_zdy_sj_z_sr, 'z_sr')

    // 滚动条-滚动事件
    this._ngj_zc('onscroll', NW04_zdy_sj_gdt_gd, 'gdt_gd')

}
NW04_zdy_sj_gt.prototype.sc = function () {
    this._ngj_sc('onmousedown')
    this._ngj_sc('onmouseup')
    this._ngj_sc('onclick')
    this._ngj_sc('ondblclick')
    this._ngj_sc('oncontextmenu')
    this._ngj_sc('onmouseover')
    this._ngj_sc('onmouseout')

    this._ngj_sc('onkeydown')
    this._ngj_sc('onkeypress')
    this._ngj_sc('onkeyup')

    this._ngj_sc('onchange')
    this._ngj_sc('oninput')
    this._ngj_sc('onscroll')
}


NW04_zdy_sj_gt.prototype._ngj_sc = function (nwjtFF) {
    this.jd[nwjtFF] = null
}


NW04_zdy_sj_gt.prototype._ngj_zc = function (nwjtFF, ff, sxMing) {
    let _sx = this.jd.getAttributeNode(sxMing);
    if (_sx) {
        this.jd[nwjtFF] = ff
        this[sxMing] = _sx.value.indexOf('(') == -1 ? _sx.value + '()' : _sx.value
        this.sj = 1;
    }
}


